package com.ll.mathdemo;

/**
 * @author 刘龙
 * @version 1.0
 */
public class Math01 {
    public static void main(String[] args) {
        // 求2到9之间的随机数
        for (int i = 0; i < 100; i++) {
            System.out.println((int) (Math.random() * (9 - 2 + 1) + 2));
        }
    }

    static void test(int a, int b) {
        for (int i = 0; i < 100; i++) {
            System.out.println((int) (Math.random() * (b - a + 1) + a));
        }
    }
}
